<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>xin'ti</title>
    <style>
        @keyframes heart{
            0%{
                transform:scale(0.5 ,0.5)  translateY(0) rotate(45deg) ;
                
            }
            50%{
                transform: scale(1 ,1) translateY(100px) rotate(45deg);
                background-color: aliceblue;
            }
           
            100%{
                transform: scale(0.5 ,0.5) translateY(400px) rotate(45deg) ;
                
            }
        }
        @keyframes color{
            0%{
                
                background-color: pink;
            }
            50%{
                
                background-color: aliceblue;
            }
           
            100%{
                background-color: pink;
                
            }
        }
       body{
        background-color: skyblue;
       }
        
        .box{
            width: 100px;
            height: 100px;
            background-color: pink;
            margin: 50px auto;
            position: relative;
            transform: rotate(45deg);

            animation: heart 2s 0s linear  infinite alternate;
            
        }
        .box::before{
            content: '';
            display: block;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: pink;
            position: absolute;
            transform: translateX(-50px);
            animation: color 2s 0s linear infinite alternate;
           
        }
        .box::after{
            content: '';
            display: block;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: pink;
            position: absolute;
            transform: translateY(-50px);
            animation: color 2s 0s linear  infinite alternate;
            
        }
        @keyframes show{
            0%{
               opacity: 0;
            }
            50%{
               opacity: 0;
            }
            100%{
                opacity: 0.8;
            }
        }
        .shadow{
            width: 100px;
            height: 40px;
            background-image: radial-gradient(grey,transparent 50%);
            border-radius: 50%;
            position: absolute;
            top: 100px;
            left: 70px;
            transform: rotate(-45deg);
            animation: show 2s 0s linear infinite alternate;
            opacity: 0;
        }
        
           
    </style>
</head>
<body>
    <div class="box">
        <div class="shadow"></div>
    </div>
    
</body>
</html>